.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
  position: relative;
  overflow: hidden;

  // 添加背景动态效果
  &::before,
  &::after {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: move 15s infinite linear;
  }

  &::before {
    left: -300px;
    top: -300px;
    animation-delay: -5s;
  }

  &::after {
    right: -300px;
    bottom: -300px;
    animation-delay: -2.5s;
  }

  @keyframes move {
    0% {
      transform: rotate(0) scale(1);
    }
    50% {
      transform: rotate(180deg) scale(1.2);
    }
    100% {
      transform: rotate(360deg) scale(1);
    }
  }

  .login-content {
    width: 100%;
    max-width: 400px;
    padding: 24px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;

    .login-card {
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(10px);
      background: rgba(255, 255, 255, 0.9);
      transition: all 0.3s ease;

      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
      }

      .ant-card-body {
        padding: 32px 24px;
      }
    }

    .login-header {
      text-align: center;
      margin-bottom: 40px;

      .logo-icon {
        font-size: 48px;
        color: #1890ff;
        margin-bottom: 16px;
        animation: bounce 2s infinite;
      }

      @keyframes bounce {
        0%, 100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-10px);
        }
      }

      h1 {
        font-size: 28px;
        font-weight: bold;
        color: rgba(0, 0, 0, 0.85);
        margin-bottom: 8px;
        background: linear-gradient(45deg, #1890ff, #722ed1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      p {
        font-size: 14px;
        color: rgba(0, 0, 0, 0.65);
        margin-bottom: 0;
      }
    }

    .login-form {
      .ant-form-item {
        margin-bottom: 28px;

        .ant-input-affix-wrapper {
          height: 42px;
          padding: 0 16px;
          border-radius: 2px;
          border: 1px solid #E5E6EB;
          background: transparent;
          transition: all 0.2s ease;
          box-shadow: none;

          &:hover {
            border-color: #165DFF;
          }

          &-focused {
            border-color: #165DFF;
            background: rgba(255, 255, 255, 0.04);
          }

          .anticon {
            color: #86909C;
            font-size: 16px;
          }

          input.ant-input {
            background: transparent;
            font-size: 14px;
            color: #1D2129;
            padding: 0 8px;

            &::placeholder {
              color: rgba(0, 0, 0, 0.45);
            }
          }
        }

        &.ant-form-item-has-error {
          .ant-input-affix-wrapper {
            background: transparent;
            border-color: #F53F3F;
            
            &:hover {
              border-color: #F76560;
            }
          }

          .ant-form-item-explain {
            color: #F53F3F;
            font-size: 13px;
            padding: 4px 2px;
          }
        }
      }

      .login-form-button {
        height: 42px;
        font-size: 15px;
        font-weight: 500;
        border-radius: 2px;
        background: #165DFF;
        border: none;
        box-shadow: none;
        transition: all 0.2s ease;

        &:hover {
          background: #306FFF;
        }

        &:active {
          background: #0E42D2;
        }
      }
    }
  }
}

// 响应式布局
@media screen and (max-width: 576px) {
  .login-container {
    .login-content {
      padding: 16px;

      .login-card {
        .ant-card-body {
          padding: 24px 16px;
        }
      }

      .login-header {
        h1 {
          font-size: 24px;
        }
      }
    }
  }
}

// 页脚样式
:global(.ant-layout-footer) {
  background: transparent;
  text-align: center;
  padding: 16px 0;
  color: rgba(22, 93, 255, 0.85);
  font-size: 13px;
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
